package com.xiaotou.db.pojo;

import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

@NamedQueries({
    @NamedQuery(
    name = WbUser.FIND_BY_WB_ID,
    query = "from WbUser w where w.wbId = :wbId"
    ),
    @NamedQuery(
    name = WbUser.FIND_ALL,
    query = "from WbUser"
    )
})

@Entity
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "wbtype", discriminatorType = DiscriminatorType.STRING)
public abstract class WbUser implements java.io.Serializable {

    public static final String FIND_BY_WB_ID = "WbUser.findByWbId";
    public static final String FIND_ALL = "WbUser.findByAll";

	private static final long serialVersionUID = -8912218197579143137L;
	public static int ISTRUE = 1;
	public static int ISFALSE = 0;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	private Long wbId;
	@ManyToOne(fetch = FetchType.LAZY)
	private AppUser appUser;
	private int province;
	private int city;
	private int followsCount;
	private int friendsCount;
	private int statusCount;
	private int verified;
	private String screenName;
	private String profileImageUrl;
	private String name;
	private String location;
	private String gender;
	private String accesstoken;
	private String accesstokenserect;

	public WbUser() {
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public AppUser getAppUser() {
		return appUser;
	}

	public void setAppUser(AppUser user) {
		this.appUser = user;
	}

	public int getProvince() {
		return province;
	}

	public void setProvince(int province) {
		this.province = province;
	}

	public int getCity() {
		return city;
	}

	public void setCity(int city) {
		this.city = city;
	}

	public int getFollowsCount() {
		return followsCount;
	}

	public void setFollowsCount(int followsCount) {
		this.followsCount = followsCount;
	}

	public int getFriendsCount() {
		return friendsCount;
	}

	public void setFriendsCount(int friendsCount) {
		this.friendsCount = friendsCount;
	}

	public int getStatusCount() {
		return statusCount;
	}

	public void setStatusCount(int statusCount) {
		this.statusCount = statusCount;
	}

	public int getVerified() {
		return verified;
	}

	public void setVerified(int verified) {
		this.verified = verified;
	}

	public String getScreenName() {
		return screenName;
	}

	public void setScreenName(String screenName) {
		this.screenName = screenName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getAccesstoken() {
		return accesstoken;
	}

	public void setAccesstoken(String accesstoken) {
		this.accesstoken = accesstoken;
	}

	public String getAccesstokenserect() {
		return accesstokenserect;
	}

	public void setAccesstokenserect(String accesstokenserect) {
		this.accesstokenserect = accesstokenserect;
	}

	public Long getWbId() {
		return wbId;
	}

	public void setWbId(Long wbId) {
		this.wbId = wbId;
	}

    /**
     * @return the profileImageUrl
     */
    public String getProfileImageUrl() {
        return profileImageUrl;
    }

    /**
     * @param profileImageUrl the profileImageUrl to set
     */
    public void setProfileImageUrl(String profileImageUrl) {
        this.profileImageUrl = profileImageUrl;
    }

}
